package org.breezeiot.protodecode.dataobject.gw.afn10;

import org.breezeiot.protodecode.protocol.chargingpile.MsgCommData;

public class TransitParamF1 extends MsgCommData {

    private short  port;          // 终端通信端口号

    private short  baudrate;      // 波特率(控制字：D7D6D5):300(0)，600(1)，1200(2)，2400(3)，4800(4)，7200(5)，9600(6)，19200(7)
    private short  stopbit;       // 停止位(控制字：D4)：1停止位(0),2停止位(1)
    private short  paritybit;     // 是否校验(控制字：D3)：无校验(0),有校验(1)
    private short  paritytype;    // 奇偶校验(控制字：D2)：偶校验(0),奇校验(1)
    private short  databit;       // 数据位(控制字：D1D0)：5位数据(0),6位数据(1),7位数据(2),8位数据(3)

    private short  msgtimeout;    // 透明转发接收等待报文超时时间(D6~D0):数值范围0～127
    private short  msgtimeoutunit;// 透明转发接收等待报文超时时间单位(D7)：10ms(0),1s(1)

    private short  bytetimeout;   // 透明转发接收等待字节超时时间

    private Object contentparam;  // 透传参数

    private int    protocolid;    // 电表协议

    public short getPort() {
        return port;
    }

    public void setPort(short port) {
        this.port = port;
    }

    public short getBaudrate() {
        return baudrate;
    }

    public void setBaudrate(short baudrate) {
        this.baudrate = baudrate;
    }

    public short getStopbit() {
        return stopbit;
    }

    public void setStopbit(short stopbit) {
        this.stopbit = stopbit;
    }

    public short getParitybit() {
        return paritybit;
    }

    public void setParitybit(short paritybit) {
        this.paritybit = paritybit;
    }

    public short getParitytype() {
        return paritytype;
    }

    public void setParitytype(short paritytype) {
        this.paritytype = paritytype;
    }

    public short getDatabit() {
        return databit;
    }

    public void setDatabit(short databit) {
        this.databit = databit;
    }

    public short getMsgtimeout() {
        return msgtimeout;
    }

    public void setMsgtimeout(short msgtimeout) {
        this.msgtimeout = msgtimeout;
    }

    public short getMsgtimeoutunit() {
        return msgtimeoutunit;
    }

    public void setMsgtimeoutunit(short msgtimeoutunit) {
        this.msgtimeoutunit = msgtimeoutunit;
    }

    public short getBytetimeout() {
        return bytetimeout;
    }

    public void setBytetimeout(short bytetimeout) {
        this.bytetimeout = bytetimeout;
    }

    public Object getContentparam() {
        return contentparam;
    }

    public void setContentparam(Object contentparam) {
        this.contentparam = contentparam;
    }

    public int getProtocolid() {
        return protocolid;
    }

    public void setProtocolid(int protocolid) {
        this.protocolid = protocolid;
    }

}
